﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expand
{
    public static class ExEnumerable
    {
        public static IEnumerable<int> RangeBetween(int minimum, int maximum)
        {
            if (minimum > maximum) throw new ArgumentOutOfRangeException("minimum", "Value should be smaller than maximum");

            return Enumerable.Range(minimum, maximum - minimum + 1);
        }

        public static IEnumerable<int> Range(int start, int count)
        {
            return Enumerable.Range(start, count);
        }

        public static IEnumerable<int> Range(int minimum)
        {
            return Enumerable.Range(minimum, 1);
        }
    }
}
